import request from '@/utils/request'

// 查询科室所有列表
export function listDepartments(query) {
    return request({
      url: '/database/departments/list',
      method: 'get',
      params: query
    })
  }

//新增
export function addDepartments(query) {
    return request({
      url: '/database/departments',
      method: 'post',
      params: query
    })
  }